/******************************************************************************/
//	Event.cpp	-	implementation of the Event class.
/******************************************************************************/

#include "Event.h"

int Event::s_nEventsNewed = 0;
int Event::s_nEventsDeleted = 0;

const char* Event::EventNames[Event::EVENT_ID_LAST + 1] =
{
	"EVENT_ID_UNDEFINED",
	"EVENT_ID_FIRST",
	"FSM_INPUT_ID_FIRST",
	"FSM_INPUT_A",
	"FSM_INPUT_B",
	"FSM_INPUT_C",
	"FSM_INPUT_D",
	"FSM_INPUT_LAST",
	"EVENT_ID_LAST"
};


Event::Event()
{
	s_nEventsNewed++;
	m_nEventId = EVENT_ID_UNDEFINED;
	m_nSourceId = m_nDestinationId = -1;
}

Event::~Event()
{	
	s_nEventsDeleted++;
}

void Event::Set(EventId _id, int _sourceId, int _destinationId)
{
	m_nEventId		= _id;
	m_nSourceId		= _sourceId;
	m_nDestinationId	= _destinationId;
}

void Event::Set(EventId _id)
{
	m_nEventId		= _id;
}

